package cn.pconline.autoclub.task.util;

import cn.pconline.autoclub.task.FileUtils;
import cn.pconline.r.client.SimpleHttpTemplate;
import cn.pconline.r.route.PcRoute;

public class PcHttpUtils {
    private static SimpleHttpTemplate simpleHttpTemplate = new SimpleHttpTemplate();
    static {
        PcRoute route = new PcRoute();
        String routeUri = FileUtils.getConfig("routeUri");
        String dnsAddr = FileUtils.getConfig("dnsAddr");
        route.setRouteUri(routeUri);
        route.setDnsAddr(dnsAddr);
        route.init();
        simpleHttpTemplate.setRoute(route);
    }
    public static SimpleHttpTemplate getSimpleHttpTemplate() {
        return simpleHttpTemplate;
    }
}
